﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysDictType.Request;
/// <summary>
/// 添加系统字典类型请求实体
/// </summary>
public class RequestInsertSysDictTypeModel : RequestBaseModel
{
    /// <summary>
    /// 字典名称
    /// </summary>
    [Required(ErrorMessage = "字典名称不能为空")]
    public string? DictName { get; set; }
    /// <summary>
    /// 字典类型
    /// </summary>
    [Required(ErrorMessage = "字典类型不能为空")]
    public string? DictType { get; set; }
    /// <summary>
    /// 状态（0正常 1停用）
    /// </summary>
    [Required(ErrorMessage = "字典状态为空"), StringLength(1, ErrorMessage = "字典状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}
